﻿using Cofe.Core.Logger;
using Cofe.Core.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cofe.Core.Interfaces
{
    public interface IVolumeFactory : ICofeService
    {
        IParamParser ParamParser { get; set; }
        IEventHub EventHub { get; set; }

        string FactoryId { get; }        
        Task<IVolume> ConstructAsync(IVolumeRegistrar volumeRegistrar, string volumeId, string paramString);        
    }

    /// <summary>
    /// Factories like EntryType and EntryList, volume created by this factory will not be removed or saved.
    /// </summary>
    public interface ISystemVolumeFactory : IVolumeFactory
    {

    }
}
